package com.zhsq.zlc.dao.user;

import com.zhsq.zlc.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface UserMapper {

    UserEntity findByLoginNameAndPassword(UserEntity entity);

    List<UserEntity> list(UserEntity entity) throws Exception;

    int count(UserEntity entity) throws Exception;

    List<UserEntity> getUserById(UserEntity entity) throws Exception;

    void add(UserEntity entity) throws Exception;

    void edit(UserEntity entity) throws Exception;

    void delete(int id) throws Exception;
}